from django.contrib import admin
from django.urls import path,include
from django.urls import register_converter
from . import views
from rest_framework_jwt.views import obtain_jwt_token,verify_jwt_token
urlpatterns = [
    # 获取吐槽的列表所有信息
    path('spit/',views.SpitTalkView.as_view({
        'get':'list',
        'post':'create'
    })),
    # path('spits/',views.ScfView.as_view()),
    # # 获取单个吐槽详情
    path('spit/<str:id>/',views.SpitId.as_view(
    )),
    # 获取吐槽评论
    path('spit/<str:id>/children/',views.SpitChildren.as_view(
    )),
    # 点赞接口
    path('spit/<str:id>/updatethumbup/',views.SpitUpdatehumbup.as_view()),
    # 收藏接口
    path('spit/<str:id>/collect/',views.SpitCollected.as_view()),
]